import $http from "@/api/http"

//上传文件
export const uploadFile = (data: object): object => {
    return $http.request({
        url: "/portal/system/file/v1/upload",
        method: "post",
        data
    })
}



//根据文件id删除文件 { 单个删除 }
export const removeFile = (fileId: string): object => {
    return $http.request({
        url: `/portal/system/file/v1/${fileId}`,
        method: "delete",
    })
}